/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.opensource.jdom.taggen.html.tag;

import org.opensource.jdom.taggen.Tag;

/**
 * Parameter of an object.
 *
 * <h2>Example</h2> <pre><code class="html">
 * &lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 * codebase="someplace/swflash.cab" width="200" height="300" id="penguin"&gt;
 * <strong>&lt;param name="movie" value="flash/penguin.swf" /&gt;</strong>
 * <strong>&lt;param name="quality" value="high" /&gt;</strong>
 * &lt;img src="images/penguin.jpg" width="200" height="300" alt="Penguin" /&gt;
 * &lt;/object&gt;
 * </code></pre>
 *
 * @see Object
 * @author sergio.valdez
 */
public class Param  extends Tag{

    /**
     * is used so that the element can be referenced and processed by the 
     * object.
     */
    private String cssName;
    /**
     * can be used to specify the value of the parameter.
     */
    private String cssValue;
    /**
     * can be used to uniquely identify the element. 
     */
    private String id;
    /**
     * can be used to specify the content type.
     */
    private String type;
    /**
     * can be used to specify the content type of the value attribute. Values 
     * can be data, ref or object.
     */
    private String valuetype;


    public Param(String cssName) {
        this.cssName = cssName;
    }

    /**
     * is used so that the element can be referenced and processed by the
     * object.
     * @return the cssName
     */
    public String getCssName() {
        return cssName;
    }

    /**
     * is used so that the element can be referenced and processed by the
     * object.
     * @param cssName the cssName to set
     */
    public void setCssName(String cssName) {
        this.cssName = cssName;
    }

    /**
     * can be used to specify the value of the parameter.
     * @return the cssValue
     */
    public String getCssValue() {
        return cssValue;
    }

    /**
     * can be used to specify the value of the parameter.
     * @param cssValue the cssValue to set
     */
    public void setCssValue(String cssValue) {
        this.cssValue = cssValue;
    }

    /**
     * can be used to uniquely identify the element.
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * can be used to uniquely identify the element.
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * can be used to specify the content type.
     * @return the type
     */
    public String getType() {
        return type;
    }

    /**
     * can be used to specify the content type.
     * @param type the type to set
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * can be used to specify the content type of the value attribute. Values
     * can be data, ref or object.
     * @return the valuetype
     */
    public String getValuetype() {
        return valuetype;
    }

    /**
     * can be used to specify the content type of the value attribute. Values
     * can be data, ref or object.
     * @param valuetype the valuetype to set
     */
    public void setValuetype(String valuetype) {
        this.valuetype = valuetype;
    }

}
